package com.ibuonline.b2b.model;

import java.io.Serializable;

import com.dimeng.common.util.StringUtil;
import com.ibuonline.b2b.common.Constants;
import com.ibuonline.b2b.common.ResourceUtil;

public class BannerImage implements Serializable{

	private static final long serialVersionUID = 3038012867079392991L;
	private String url;
	
	private String bannerType;
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getShowBanner() {
		if(StringUtil.notEmpty(url)) {
			return ResourceUtil.getResPath(url);
		} else {
			return "/images/"+Constants.SHOP_NO_BANNER;
		}
	}

	public String getBannerType() {
		return bannerType;
	}

	public void setBannerType(String bannerType) {
		this.bannerType = bannerType;
	}
}
